    import Vue from 'vue';
    import Vuex from 'vuex';
     
    Vue.use(Vuex);

const store=new Vuex.Store({
        state:{
           login:false,
        }, 
        getters:{
          login:state=>{
              return state.login;
          }
        },
        actions:{
            checkLogin:(store,payload)=>{
                store.commit('checkLogin',payload);
            }   
        },
    
    
        mutations:{
            checkLogin:(state,payload)=>{
                state.login=payload;
            }
        }


    })
    export default store;